package work.parabola.keyboardswitch.dao;

import org.apache.ibatis.annotations.Param;
import work.parabola.keyboardswitch.pojo.repository.SwitchDo;

import java.util.List;

public interface SwitchDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SwitchDo record);

    int insertSelective(SwitchDo record);

    SwitchDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SwitchDo record);

    int updateByPrimaryKey(SwitchDo record);

    List<SwitchDo> selectByParam(@Param("keyword") String keyword,
                                 @Param("onlyShowNoColor") Boolean onlyShowNoColor,
                                 @Param("onlyShowNoManufacturer") Boolean onlyShowNoManufacturer);

    int selectCountBySimpleName(String simpleName);
}